const Layout = () => import("@/layout/index.vue")

export default [
  {
    name: 'Comp',
    path: '/comp',
    component: Layout,
    redirect: '/comp/modal',
    meta: {
      title: '自定义组件示例',
      icon: 'clarity:tree-view-line',
      role: ['admin'],
    },
    children: [
      {
        name: 'Modal',
        path: 'modal',
        component: () => import('@/views/demo/modal/index.vue'),
        meta: {
          title: '模态',
          icon: 'carbon:table-split',
          role: ['admin'],
        },
      },
      {
        name: 'Form',
        path: 'form',
        component: () => import('@/views/demo/form/basic.vue'),
        meta: {
          title: '表单',
          icon: 'carbon:table-split',
          role: ['admin'],
        },
      },
    ],
  },
]
